﻿<UserControl x:Class="Deployment.Data.UI.Controls.Builder.BuilderControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="425">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*" MinWidth="100"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Label Grid.Row="0" Grid.Column="0"
               Content="Environments file path:"
               VerticalAlignment="Center"/>
        <Border Grid.Row="0" Grid.Column="1" x:Name="row0b"/>
        <TextBox Grid.Row="0" Grid.Column="1"
                 x:Name="txt_EnvironmentsFile"
                 Text="{Binding EnvironmentsFile}"
                 Width="{Binding ActualWidth, ElementName=row0b}"
                 VerticalAlignment="Center"
                 Padding="4"/>
        <Button Grid.Row="0" Grid.Column="2"
                Content="Browse..."
                Click="environmentBrowse_Click"
                VerticalAlignment="Center"
                Padding="4"
                Margin="4"/>
        <Button Grid.Row="0" Grid.Column="3"
                Content="Edit/Create"
                VerticalAlignment="Center"
                Click="environmentEdit_Click"
                Padding="4"
                Margin="4"/>

        <Label Grid.Row="1" Grid.Column="0"
               Content="Deployment file path:"
               VerticalAlignment="Center"/>
        <TextBox Grid.Row="1" Grid.Column="1"
                 x:Name="txt_deploymentfile"
                 Text="{Binding DeploymentFile}"
                 VerticalAlignment="Center"
                 Padding="4"/>
        <Button Grid.Row="1" Grid.Column="2"
                Content="Browse..."
                Click="deploymentBrowse_Click"
                VerticalAlignment="Center"
                Padding="4"
                Margin="4"/>
        <Button Grid.Row="1" Grid.Column="3"
                Content="Edit/Create"
                Click="deploymentEdit_Click"
                VerticalAlignment="Center"
                Padding="4"
                Margin="4"/>

        <Label Grid.Row="2" Grid.Column="0"
               Content="Variables file path:"
               VerticalAlignment="Center"/>
        <TextBox Grid.Row="2" Grid.Column="1"
                 x:Name="txt_VariableFile"
                 Text="{Binding DeploymentFile}"
                 VerticalAlignment="Center"
                 Padding="4"/>
        <Button Grid.Row="2" Grid.Column="2"
                Content="Browse..."
                Click="variableBrowse_Click"
                VerticalAlignment="Center"
                Padding="4"
                Margin="4"/>
        <Button Grid.Row="2" Grid.Column="3"
                Content="Edit/Create"
                Click="variableEdit_Click"
                VerticalAlignment="Center"
                Padding="4"
                Margin="4"/>
    </Grid>
</UserControl>
